using Godot;
using System;

public partial class GameManager : Node
{
    private int score = 0;
    private Label scoreLable;
  public override void _Ready()
  {
      scoreLable = GetTree().CurrentScene.GetNode<Label>("GameManager/ScoreLable");
  }

  public void Reload()
  {
      score = 0;
      scoreLable = GetTree().CurrentScene.GetNode<Label>("GameManager/ScoreLable");
  }
  public void AddPoint()
    {
        score += 1;
        scoreLable.Text = "You collected " + score.ToString() + " coins.";
    }
}